/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86183
 * Date: 2024-03-03
 * Time: 18:57
 */
public class Alg2 {

        public static  <T extends Comparable<T>> T findMax(T[] array){
            T max=array[0];
            for (int i = 1; i < array.length; i++) {
                if(array[i].compareTo(max)>0){
                    max=array[i];
                }
            }
            return max;
        }


}
